package com.cqc.paoclient.ui.search;

import com.cqc.paoclient.R;
import com.cqc.paoclient.base.BaseActivity;
import com.cqc.paoclient.base.BasePresenter;
import com.cqc.paoclient.ui.search.code.CodeFragment;

/**
 * Created by cui on 2017/11/26.
 */

public class SearcherActivity extends BaseActivity {

    @Override
    public int getLayoutId() {
        return R.layout.activity_searec;
    }

    @Override
    public BasePresenter getmPresenter() {
        return null;
    }

    @Override
    public void presenterSetView() {

    }

    @Override
    public void initView() {
        String type = dataIntent.getStringExtra("");
        if ("0".equals(type)) {
            getSupportFragmentManager().beginTransaction().replace(R.id.fl_content, new CodeFragment()).commitAllowingStateLoss();
        } else {
            getSupportFragmentManager().beginTransaction().replace(R.id.fl_content, new CodeFragment()).commitAllowingStateLoss();
        }
    }

    @Override
    public void initData() {

    }
}
